// 轮播图接口的数据请求
import instance from '@/utils/request';

// 定义轮播图列表数据
export function getbannerlistApi() {
    return instance.get('/admin/banner/list')
}

// 定义删除轮播图接口

export function delbannerApi(data: { bannerid: string }) {
    return instance.get('/admin/banner/delete', { params: data })
}

// 图片上传接口
type uploadType = {
    img: string,
    alt: string,
    link: string
}
export function uploadImgApi(data: uploadType) {
    return instance.post('/admin/banner/add', data)
}